//
//  HYTableViewCellForMVMenu.m
//  TTLestening
//
//  Created by dllo on 16/3/30.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "HYTableViewCellForMVMenu.h"
#import "HYModelForMVMenu.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface HYTableViewCellForMVMenu ()

@property (weak, nonatomic) IBOutlet UIImageView *imageViewForMV;
@property (weak, nonatomic) IBOutlet UILabel *labelForName;
@property (weak, nonatomic) IBOutlet UILabel *lableForSinger;
@property (weak, nonatomic) IBOutlet UILabel *labelForPlayCount;
@property (weak, nonatomic) IBOutlet UILabel *labelForCommentCount;

@end

@implementation HYTableViewCellForMVMenu


- (void)passModel:(HYModelForMVMenu *)model {
    
    self.labelForName.text = model.videoName;
    self.lableForSinger.text = model.singerName;
    self.labelForPlayCount.text = [model.pickCount stringValue];
    self.labelForCommentCount.text = [model.bulletCount stringValue];
    
    NSString *str = [[model.mvList lastObject] objectForKey:@"picUrl"];
    [self.imageViewForMV sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"iconfont-jiazai"]];
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
